<?xml version="1.0" encoding="UTF-8"?>
<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
        <script type="text/javascript" src="../public/scripts//validation.js"/>
        <link rel="stylesheet" href="../public/media/stylesheet/style1.css" type="text/css" title="vika_style"/>
        <link rel="alternate stylesheet" href="../public/media/stylesheet/style2.css" type="text/css" title="cill_style"/>
        <title>Photo World::Photo Details</title>

        <script type="text/javascript">
            function parseURL(url){
                return url.split(/\?photoid\=/);
            }

            function loadPhoto(){
                url = window.location.href;
                photoId = parseURL(url)[1];

                photoDet = document.getElementById("photoDetail");
                photoDet.src = "../public/media/image/" + photoId + ".jpg";
                photoDet.alt = photoId;
            }
        </script>
    </head>

    <body onload="loadPhoto()">
        <div id="wrapper">
            <div id="header">
                <h1 id="header_title"></h1>
            </div>

            <div id="content_wrapper">
                <div id="nav_menu">
                    <ul>
                        <li><a href="album.xhtml">Home</a></li>
                        <li><a href="register.xhtml">Registration</a></li>
                        <li><a href="upload.xhtml">Upload</a></li>
                        <li><a href="album.xhtml">Album</a></li>
                    </ul>
                </div>

                <div id="content">
                    <div id="photo_box">
                        <img id="photoDetail" src="" alt=""/>
                    </div>

                    <div class="photo_comment">
                        <div class="photo_comment_owner">Timotius Nugroho Chandra</div>
                        <div class="photo_comment_timestamp">at February 27 2011 - 10:07 AM</div>
                        <div class="photo_comment_content">Lorem ipsum dolores sit amet Lorem ipsum dolores sit amet Lorem ipsum dolores sit amet Lorem ipsum dolores sit amet Lorem ipsum dolores sit amet</div>
                    </div>

                    <div class="photo_comment">
                        <div class="photo_comment_owner">Timotius Nugroho Chandra</div>
                        <div class="photo_comment_timestamp">at February 27 2011 - 10:07 AM</div>
                        <div class="photo_comment_content">Lorem ipsum</div>
                    </div>

                    <div class="photo_comment">
                        <div class="photo_comment_owner">Timotius Nugroho Chandra</div>
                        <div class="photo_comment_timestamp">at February 27 2011 - 10:07 AM</div>
                        <div class="photo_comment_content">Dolores sit amet Dolores sit amet Dolores umbridge Dolores sit amet Dolores sit amet</div>
                    </div>

                    <div class="photo_comment">
                        <form id="comment_form" action="" onsubmit="return false;">
                            <fieldset>
                                <textarea id="comment_form_content" name="comment_form_content" cols="5" rows="2"/><br/><br/>
                                <input type="submit" id="comment_form_submit" value="submit" />
                            </fieldset>
                        </form>
                    </div>
                </div>
            </div>

            <div id="footer">
                Photo World © 2011<br/>
                <a href="#" onclick="switchCss()">Switch CSS</a>
                <a href="#">About</a>
                <a href="#">Terms</a>
                <a href="#">Help</a>
            </div>
        </div>
    </body>
</html>
